#include <iostream>
#include "tabtenn.hpp"
#include "RatedPlayer.hpp"
int main()
{
    TableTennisPlayer t1("shuai","liu",true);
    RatedPlayer r1(90,t1);
    RatedPlayer r2(100,"dehua","liu", false);
    t1.Name();
    r2.Name();//使用基类的方法
    std::cout<<r2.Rating()<<"\n";
    TableTennisPlayer & rt = t1;
    rt.Name();
}